import zsh.dao.Impl.DaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        //加载配置上下文对象
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        //获取资源
        DaoImpl daoImpl = (DaoImpl) context.getBean("DaoService");
        daoImpl.print();
    }
}
